﻿using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.Text;
using Xyz.Core.Data.Entity;

namespace Xyz.Core.Data.Configurations
{
    public class IcaoConfiguration : IEntityTypeConfiguration<Icao>
    {
        public void Configure(EntityTypeBuilder<Icao> builder)
        {
            builder.HasKey(e => e.Icaoid);
            //builder.Property(e => e.Id).ValueGeneratedNever();
            builder.Property(x => x.Name).HasMaxLength(50);
            builder.Property(x => x.ICAO).HasMaxLength(50);
            builder.Property(x => x.Latitude).HasMaxLength(50);
            builder.Property(x => x.Longtitude).HasMaxLength(50);
            builder.Property(x => x.Elevation).HasMaxLength(50);
            builder.ToTable("Icao");
        }
    

    }
}
